package com.hzhc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.entity.SysDictType;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.SysDictTypeVo;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * <p>
 * 字典类型表 服务类
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-04-07
 */
public interface SysDictTypeService extends IService<SysDictType> {

    List<SysDictTypeVo> getSysDictTypeVoList(Page<SysDictTypeVo> page, SysDictTypeVo vo);

    ResultUtil<T> checkDictTypeField(SysDictType type);

    boolean addDictType(SysDictType type);

    boolean updateDictType(SysDictType type);

    boolean delDict(Long id);

    SysDictType getByCode(String code);

    Long getTimeDiff(Long timeDifference);
}
